package com.example.tests;

import org.testng.annotations.Test;

public class ContactCreationTests extends TestBase {

  @Test
  public void testContactCreation() throws Exception {
	app.getNavigationHelper().openMainPage();
    app.getContactHelper().initContactCreation();
    ContactData contact = new ContactData();
    	contact.firstName = "FirstName1";
    	contact.lastName = "LastName1";
    	contact.address = "Astronomichna str";
    	contact.homePhone = "1234567890";
    	contact.mobilePhone = "0987654321";
    	contact.workPhone = "1122334455";
    	contact.email = "email1@test.com";
    	contact.email2 = "email2@test.com";
    	contact.bday = "12";
    	contact.bmonth = "June";
    	contact.byear = "1988";
    	contact.address2 = "bla bla";
    	contact.additionalPhone = "9988776655";
	app.getContactHelper().fillContactCreationForm(contact);
    app.getGroupHelper().submitCreation();
    app.getContactHelper().returntoHomePage();
  }

}
